<?php

namespace App\Models\Plane\PlaneOrderFlight\Repositories\Interfaces;

use App\Models\Plane\PlaneOrderFlight\PlaneOrderFlight;
use App\Models\Plane\PlaneOrders\PlaneOrder;

interface PlaneOrderFlightRepositoryInterface
{
    /**
     * 主车次
     *
     * @param PlaneOrder $flight_order
     * @param array      $data
     *
     * @return PlaneOrderFlight
     */
    public function addFlight(PlaneOrder $flight_order, array $data): PlaneOrderFlight;

    public function findFlightByOrder(PlaneOrder $order): ?PlaneOrderFlight;

}